-- GENERATED SPELL FOR [Shattered Hand Centurion] --


function spell0_17465(pUnit, Event) --@Battle Shout,Self--
pUnit:FullCastSpellOnTarget(30931,pUnit)
pUnit:RegisterEvent('Sorts_17465', 20257, 1)
end

function spell1_17465(pUnit, Event) --@Battle Shout,Self--
pUnit:FullCastSpellOnTarget(31403,pUnit)
pUnit:RegisterEvent('Sorts_17465', 605, 1)
end

function spell2_17465(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(15572,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17465', 30253, 1)
end

function spell3_17465(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(16145,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17465', 30295, 1)
end

function Sorts_17465(pUnit, Event)
local choix_sorts_17465 = math.random(0, 3)
if choix_sorts_17465 == 0 then
pUnit:RegisterEvent('spell0_17465', 1, 1)
end
if choix_sorts_17465 == 1 then
pUnit:RegisterEvent('spell1_17465', 1, 1)
end
if choix_sorts_17465 == 2 then
pUnit:RegisterEvent('spell2_17465', 1, 1)
end
if choix_sorts_17465 == 3 then
pUnit:RegisterEvent('spell3_17465', 1, 1)
end
end

function mob17465_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17465', math.random(1500, 3000), 1)
end

function mob17465_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17465_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17465_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17465, 1, 'mob17465_Action')
RegisterUnitEvent(17465, 2, 'mob17465_Leave')
RegisterUnitEvent(17465, 3, 'mob17465_Kill')
RegisterUnitEvent(17465, 4, 'mob17465_Die')
